﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.PortableExecutable;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Documents;

namespace NewWms.Extend
{
   public static class GlobalVariable
    {
         static GlobalVariable()
        {
            GetEnvironment();
        }
        public static string Machine {  get; set; }
        public static string Config { get; set; }
        public static string InletCode { get; set; }
        public static string OutletCode {  get; set; }
        public static string IsDebug {  get; set; }
        public static void GetEnvironment()
        {
            Machine = Environment.GetEnvironmentVariable("Machine", EnvironmentVariableTarget.Machine);
            Config = Environment.GetEnvironmentVariable("珠海博世Re-config", EnvironmentVariableTarget.Machine);
            IsDebug= Environment.GetEnvironmentVariable("IsDebug", EnvironmentVariableTarget.Machine);
            if (Machine == "1")
            {
                InletCode = "CS-01";
                OutletCode = "CS-01";
            }
            if(Machine == "2")
            {
                InletCode = "CS-02";
                OutletCode = "CS-02";
            }
            

        }
   
    }
}
